#include <my_head.h>

int main(int argc, const char *argv[]){
    char buff[] = "192.168.5.70";
    unsigned int ip = inet_addr(buff);
    unsigned char *p = (unsigned char *)&ip;
    printf("%s --> %d.%d.%d.%d\n", \
        buff, *p, *(p+1), *(p+2), *(p+3));
    // 192.168.5.70 --> 192.168.5.70
    return 0;
}